<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>CSS列表案例</title>

    <style>
        ul.a {
            list-style-type: circle;
        }

        ul.b {
            list-style-type: square;
        }

        ol.c {
            list-style-type: upper-roman;
        }

        ol.d {
            list-style-type: lower-alpha;
        }

        ul.demo {
            list-style-type: none;
            margin: 0;
            padding: 0;
        }

        ul.demo2 {
            list-style-type: none;
            padding: 0px;
            margin: 0px;
        }

        ul.demo2 li {
            background-image: url(https://img2.baidu.com/it/u=3088070715,2077282667&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500);
            background-repeat: no-repeat;
            background-position: 15px 1px;
            padding-left: 14px;
        }

        ul.demo3 {
            list-style: none url("https://up.enterdesk.com/edpic/3f/93/74/3f93744ced6e83b09404d1d262bbd7f8.jpeg");

        }
    </style>
</head>

<body>
    <p>无序列表实例:</p>

    <ul class="a">
        <li>Coffee</li>
        <li>Tea</li>
        <li>Coca Cola</li>
    </ul>

    <ul class="b">
        <li>Coffee</li>
        <li>Tea</li>
        <li>Coca Cola</li>
    </ul>

    <p>有序列表实例:</p>

    <ol class="c">
        <li>Coffee</li>
        <li>Tea</li>
        <li>Coca Cola</li>
    </ol>

    <ol class="d">
        <li>Coffee</li>
        <li>Tea</li>
        <li>Coca Cola</li>
    </ol>

    <p>默认设置:</p>
    <ul>
        <li>Google</li>
        <li>Runoob</li>
        <li>Taobao</li>
    </ul>

    <p>移除默认设置:</p>
    <ul class="demo">
        <li>Coffee</li>
        <li>Tea</li>
        <li>Coca Cola</li>
    </ul>

    <p>将图像设置为列表项标志:</p>
    <ul class="demo2">
        <li>Coffee</li>
        <li>Tea</li>
        <li>Coca Cola</li>
    </ul>

    <p>简写属性:</p>
    <ul class="demo3">
        <li>Coffee</li>
        <li>Tea</li>
        <li>Coca Cola</li>
    </ul>
</body>

</html>